package entity.maintenance;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 备件明细
 * </p>
 *
 * @author beisheng
 * @since 2023-05-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class DocumentsPartsList implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "parts_id", type = IdType.AUTO)
    private Integer partsId;

    /**
     * 备件名称
     */
    private String partsName;

    /**
     * 备件编码
     */
    private String partsCoding;

    /**
     * 规格型号
     */
    private String partsModel;

    /**
     * 备件类型
     */
    private String partsType;

    /**
     * 单位
     */
    private String partsUnit;

    /**
     * 库存上限
     */
    private Integer caps;

    /**
     * 库存下限
     */
    private Integer collars;

    /**
     * 当前库存
     */
    private Integer repertory;

    /**
     * 领用数量
     */
    @TableField("Requisitioned_quantity")
    private Integer requisitionedQuantity;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 删除标识
     */
    private Integer deleteFlag;


}
